package com.night.icm.persistence.base.repository;

import com.night.icm.persistence.base.entity.CourseType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * CourseTypeRepository
 *
 * @author Liao ZhiYong
 * @date 2020/2/5
 */
@Repository
public interface CourseTypeRepository extends JpaRepository<CourseType, Long>, JpaSpecificationExecutor<CourseType> {

    /**
     * 根据code查找课程类型
     *
     * @param code
     * @return
     */
    CourseType findByCode(String code);
}